package com.classnet;

import com.classnet.db.User;
import javax.persistence.EntityManager;

/**
 *
 * @author karltinawi
 * @version 1.0
 */
public class CnetUserSession extends CnetSession {
    
    private User user;
    
    public CnetUserSession(EntityManager entityManager, User user) {
        super(entityManager);
        
        if(user == null)
            throw new NullPointerException("Expected User.");
        
        this.user = user;
    }
    
    public final User getUser() {
        return user;
    }
}